function submit(taskStr, recogStr) {
    var rao = document.getElementById("rao").value;
    var tou = document.getElementById("tou").value;
    var gou = document.getElementById("gou").value;
    var chi = document.getElementById("chi").value;
    var zhang1 = document.getElementById("zhang1").value;
    var zhang3 = document.getElementById("zhang3").value;
    var zhang5 = document.getElementById("zhang5").value;
    var jin1 = document.getElementById("jin1").value;
    var jin3 = document.getElementById("jin3").value;
    var jin5 = document.getElementById("jin5").value;
    var yuan1 = document.getElementById("yuan1").value;
    var yuan3 = document.getElementById("yuan3").value;
    var yuan5 = document.getElementById("yuan5").value;
    var zhong3 = document.getElementById("zhong3").value;
    var zhong5 = document.getElementById("zhong5").value;

    var recognization = {
        raoScore:rao,
        gouScore:gou,
        touScore:tou,
        chiScore:chi,
        zhang1Score:zhang1,
        zhang3Score:zhang3,
        zhang5Score:zhang5,
        jin1Score:jin1,
        jin3Score:jin3,
        jin5Score:jin5,
        yuan1Score:yuan1,
        yuan3Score:yuan3,
        yuan5Score:yuan5,
        zhong3Score:zhong3,
        zhong5Score:zhong5
    };


    $.ajax({
        type: "POST",
        url: "updateNewRank",
        dataType: "json",
        xhrFields: {withCredentials:true},	//前端适配：允许session跨域
        crossDomain: true,
        contentType:"application/x-www-form-urlencoded",
        data: { "recog":JSON.stringify(recognization), "taskStr":taskStr, "recogStr":recogStr},
        success: function (data) {
            //var result = JSON.parse(data);
            if (data.code == 1) {
                alert("" + data.msg);
                window.location.href = "/result?sliceId=" + data.sliceStr;
            }else {
                alert("" + data.msg);
            }
        },
        error: function () {
            alert("请求错误");

        }
    });
}

function getBoneage(taskStr) {
    var rao = document.getElementById("rao").value;
    var tou = document.getElementById("tou").value;
    var gou = document.getElementById("gou").value;
    var chi = document.getElementById("chi").value;
    var zhang1 = document.getElementById("zhang1").value;
    var zhang3 = document.getElementById("zhang3").value;
    var zhang5 = document.getElementById("zhang5").value;
    var jin1 = document.getElementById("jin1").value;
    var jin3 = document.getElementById("jin3").value;
    var jin5 = document.getElementById("jin5").value;
    var yuan1 = document.getElementById("yuan1").value;
    var yuan3 = document.getElementById("yuan3").value;
    var yuan5 = document.getElementById("yuan5").value;
    var zhong3 = document.getElementById("zhong3").value;
    var zhong5 = document.getElementById("zhong5").value;

    var recognization = {
        raoScore:rao,
        gouScore:gou,
        touScore:tou,
        chiScore:chi,
        zhang1Score:zhang1,
        zhang3Score:zhang3,
        zhang5Score:zhang5,
        jin1Score:jin1,
        jin3Score:jin3,
        jin5Score:jin5,
        yuan1Score:yuan1,
        yuan3Score:yuan3,
        yuan5Score:yuan5,
        zhong3Score:zhong3,
        zhong5Score:zhong5
    };

    $.ajax({
        type: "POST",
        url: "calculate",
        dataType: "json",
        xhrFields: {withCredentials:true},	//前端适配：允许session跨域
        crossDomain: true,
        contentType:"application/x-www-form-urlencoded",
        data: { "recog":JSON.stringify(recognization), "taskStr":taskStr},
        success: function (data) {
            //var result = JSON.parse(data);
            if (data.code == 1) {
                alert("" + data.msg);
                var chn = data.chn;
                var tw3 = data.tw3;
                var twc = data.twc;
                document.getElementById("chn").innerHTML = 'CHN骨龄：' + chn;
                document.getElementById("tw3").innerHTML = 'TW3骨龄：' + tw3;
                document.getElementById("twc").innerHTML = 'TWC骨龄：' + twc;
            }else {
                alert("" + data.msg);
            }
        },
        error: function () {
            alert("请求错误");

        }
    });
}